<template>
  <div class="Hellswiper">
    <van-swipe :autoplay="3000" lazy-render>
      <van-swipe-item v-for="image in images" :key="image">
        <img :src="image" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: "Hellswiper",
  setup() {
    const images = [
      require("../assets/img/2.jpg"),
      require("../assets/img/1.jpg"),
      require("../assets/img/zz.png"),
    ];
    return { images };
  },
};
</script>

<style lang="less" scoped>
.Hellswiper img {
  display: inline-block;
  width: 100%;
  height: 3.8rem;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 1.5rem;
  text-align: center;
  display: block;
  background-color: #39a9ed;
}
</style>